package main;

import javax.swing.JTable;

public class TargetGridTable extends JTable 
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1860165813769112719L;
	public TargetGridModel model;
	
	public TargetGridTable(TargetGridModel model)
	{
		super(model);
		this.model = model;
		this.getModel().addTableModelListener(this);
		this.addMouseListener(new TargetGridMouseAdapter(this));
		this.getColumnModel().getColumn(1).setCellRenderer(new TargetGridCellRenderer());
		int rowHeight = this.getRowHeight();
		this.getColumnModel().getColumn(1).setMaxWidth(rowHeight);
		this.getColumnModel().getColumn(1).setMinWidth(rowHeight);
	}
	
	
}
